package com.haier.a920changjingyanshidemo.activity;

import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

import com.haier.a920changjingyanshidemo.R;

/**
 * Created by 01457215 on 2017/8/22.
 */

public class GetWaterChuFangJSJActivity extends Activity implements View.OnClickListener {
    @Override
    public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_getwater_chufang_jsj);
        View viewById = findViewById(R.id.pp_lvxin);
        viewById.setOnClickListener(this);
    }

    /**
     * Called when a view has been clicked.
     *
     * @param v The view that was clicked.
     */
    @RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)
    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.pp_lvxin:
                MyDialog myDialog = new MyDialog(this, "2");
//                myDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
                myDialog.show();
                break;
        }

    }
}
